#ifndef __QMC_6309_H__
#define __QMC_6309_H__

#include <config.H>
#include "softi2c.h"

#define QMC_REG_CHIPID				0x00
#define QMC_REG_X_L					0x01
#define QMC_REG_X_H					0x02
#define QMC_REG_Y_L					0x03
#define QMC_REG_Y_H					0x04
#define QMC_REG_Z_L					0x05
#define QMC_REG_Z_H					0x06
#define QMC_REG_STAT				0x09
#define QMC_REG_CTRL1				0x0A
#define QMC_REG_CTRL2				0x0B
#define QMC_REG_TEST				0x0E
#define QMC_REG_TEST_X				0x13
#define QMC_REG_TEST_Y				0x14
#define QMC_REG_TEST_Z				0x15

u8 qmc_init(void);
u8 qmc_get_direction(void);

#endif
